package com.ryskoo.catering.dinnertabletype.domain;

import com.ryskoo.catering.employeetablerel.domain.EmployeeTableRelPO;
import com.ryskoo.framework.core.bean.BasicPO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * 台桌类型
 */
@Entity
@Table(name = "cater_dinnertable_type")
public class DinnerTableTypePO extends BasicPO {

	/* 台桌类型名称，比如大厅，小包，大包厢等 */
	@Column(name = "name", columnDefinition = "varchar", length = 20)
	private String name;
	/* 所属商户uuid */
	@Column(name = "vendor_uuid", columnDefinition = "char", length = 32)
	private String vendorUuid;
	/* 所属商户名称 */
	@Column(name = "vendor_name", columnDefinition = "varchar", length = 50)
	private String vendorName;

	@Transient
	private List<EmployeeTableRelPO> relList;

	public String getVendorName() {
		return vendorName;
	}

	public void setVendorName(String vendorName) {
		this.vendorName = vendorName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getVendorUuid() {
		return vendorUuid;
	}

	public void setVendorUuid(String vendorUuid) {
		this.vendorUuid = vendorUuid;
	}

	public List<EmployeeTableRelPO> getRelList() {
		return relList;
	}

	public void setRelList(List<EmployeeTableRelPO> relList) {
		this.relList = relList;
	}
}
